
//引入echarts
//如何在react获取dom => useRef
//在什么时候获取dom方法  => useEffect dom更新之后钩子
//参数自定义  抽离出来
import Bar from '@/components/Bar'
const Home = () => {
    return (
        <div>
            <Bar 
                title='满意度' 
                xData={['react','vue','angular']}
                yData={[40,122,56]}
                style={{width:'600px',height:'500px'}}
            />
            <Bar 
                title='用户数' 
                xData={['react','vue','angular']}
                yData={[10,32,43]}
                style={{width:'400px',height:'300px'}}
            />
        </div>
    )
}

export default Home